/ Developer CD Series 1998 November: Tool Chest
/ Dev.CD Nov 98 TC.toast / Sample Code / QuickDraw / SetWindBackColor / SetWindBackColor READ ME ![]() | next > |
MacBinary | 1997-06-19 | 2.5 KB | [clpp/drag] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
100% | file | MacBinary II, inited, Wed Jun 11 07:57:28 1997, modified Thu Jun 19 06:36:53 1997, creator 'drag', type 'clpp' "SetWindBackColor READ ME", at 0x80 2321 bytes resource Apple HFS/HFS+ resource fork, map offset 0x8a3, map length 0x6e, data length 0x7a3, at 16 0x74537479, nextResourceMap 0x1d8b864, fileRef 0x40a2, list offset 0x1c, name offset 0x6e, 4 types, 0x50494354 'PICT' * 1 resource offset 0x22 | default (weak) | |
99% | file | data | default | |
100% | TrID | MacBinary 2 | default (weak) | |
100% | dexmagic | Picasso 64 Image | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [clpp] |
macFileCreator | [drag] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 18 53 65 74 57 69 6e | 64 42 61 63 6b 43 6f 6c |..SetWin|dBackCol|
|00000010| 6f 72 20 52 45 41 44 20 | 4d 45 00 00 00 00 00 00 |or READ |ME......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 63 6c 70 70 64 72 61 | 67 01 00 00 00 00 00 00 |.clppdra|g.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 09 11 af c4 43 28 af |........|.....C(.|
|00000060| ce bc 45 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..E.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 8f 7a 00 00 |........|.....z..|
|00000080| 00 00 01 00 00 00 08 a3 | 00 00 07 a3 00 00 00 6e |........|.......n|
|00000090| 74 53 74 79 6c 65 48 61 | 6e 64 6c 65 28 74 68 65 |tStyleHa|ndle(the|
|000000a0| 48 61 6e 64 6c 65 2c 20 | 68 54 45 29 20 54 45 53 |Handle, |hTE) TES|
|000000b0| 18 53 65 74 57 69 6e 64 | 42 61 63 6b 43 6f 6c 6f |.SetWind|BackColo|
|000000c0| 72 20 52 45 41 44 20 4d | 45 63 2e 53 59 4d 45 31 |r READ M|Ec.SYME1|
|000000d0| 00 00 63 6c 70 70 64 72 | 61 67 01 00 ff ff ff ff |..clppdr|ag......|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 af c4 43 28 00 00 | 00 00 00 00 09 11 29 0d |....C(..|......).|
|00000100| 23 64 65 66 69 6e 65 20 | 47 65 74 53 74 79 6c 65 |#define |GetStyle|
|00000110| 48 61 6e 64 6c 65 28 68 | 54 45 29 20 54 45 47 65 |Handle(h|TE) TEGe|
|00000120| 74 53 74 79 6c 65 48 61 | 6e 64 6c 65 28 68 54 45 |tStyleHa|ndle(hTE|
|00000130| 29 0d 23 64 65 66 69 6e | 65 20 54 45 53 74 79 6c |).#defin|e TEStyl|
|00000140| 50 61 73 74 65 28 68 54 | 45 29 20 54 45 53 74 79 |Paste(hT|E) TESty|
|00000150| 6c 65 50 61 73 74 65 28 | 68 54 45 29 0d 23 64 65 |lePaste(|hTE).#de|
|00000160| 66 69 6e 65 20 47 65 74 | 53 74 79 6c 53 63 72 61 |fine Get|StylScra|
|00000170| 70 28 68 54 45 29 20 54 | 45 47 65 74 53 74 79 6c |p(hTE) T|EGetStyl|
|00000180| 00 00 07 36 07 36 00 00 | 00 00 02 1d 01 b3 00 11 |...6.6..|........|
|00000190| 02 ff 0c 00 ff ff ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 01 b3 00 00 02 1d 00 00 | 00 00 00 00 00 1e 00 0c |........|........|
|000001b0| 00 00 ff ff 00 01 00 0a | 00 00 00 00 02 1c 01 b3 |........|........|
|000001c0| 00 2c 00 09 00 03 06 47 | 65 6e 65 76 61 00 00 03 |.,.....G|eneva...|
|000001d0| 00 03 00 0d 00 18 00 2e | 00 04 00 00 00 00 00 10 |........|........|
|000001e0| 02 1c 01 b3 02 1c 01 b3 | 00 2b 12 16 10 53 65 74 |........|.+...Set|
|000001f0| 57 69 6e 64 42 61 63 6b | 43 6f 6c 6f 72 00 00 2c |WindBack|Color..,|
|00000200| 00 0b 00 10 08 50 61 6c | 61 74 69 6e 6f 00 00 03 |.....Pal|atino...|
|00000210| 00 10 00 0d 00 0c 00 2b | 12 1a 32 63 6f 64 65 20 |.......+|..2code |
|00000220| 61 6e 64 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |and docu|mentatio|
|00000230| 6e 20 a9 ca 31 39 39 37 | 20 41 70 70 6c 65 20 43 |n ..1997| Apple C|
|00000240| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 00 00 2a |omputer,| Inc...*|
|00000250| 0e 19 50 65 74 65 20 47 | 6f 6e 74 69 65 72 2c 20 |..Pete G|ontier, |
|00000260| 45 76 69 6c 20 47 65 6e | 69 75 73 00 00 2a 0e 22 |Evil Gen|ius..*."|
|00000270| 4d 61 63 20 4f 53 20 44 | 65 76 65 6c 6f 70 65 72 |Mac OS D|eveloper|
|00000280| 20 54 65 63 68 6e 69 63 | 61 6c 20 53 75 70 70 6f | Technic|al Suppo|
|00000290| 72 74 00 2a 0e 16 63 6f | 6d 6d 65 6e 74 73 20 61 |rt.*..co|mments a|
|000002a0| 6e 64 20 6b 75 64 6f 73 | 20 74 6f 20 00 2c 00 0a |nd kudos| to .,..|
|000002b0| 00 16 07 43 6f 75 72 69 | 65 72 00 03 00 16 00 29 |...Couri|er.....)|
|000002c0| 89 16 3c 64 65 76 73 75 | 70 70 6f 72 74 40 61 70 |..<devsu|pport@ap|
|000002d0| 70 6c 65 2e 63 6f 6d 3e | 00 03 00 03 00 0d 00 12 |ple.com>|........|
|000002e0| 00 28 00 7a 00 12 0b 57 | 68 61 74 20 69 73 20 69 |.(.z...W|hat is i|
|000002f0| 74 3f 00 03 00 10 00 0d | 00 0c 00 2b 12 18 33 49 |t?......|...+..3I|
|00000300| 74 27 73 20 61 20 73 69 | 6d 70 6c 65 20 63 6f 64 |t's a si|mple cod|
|00000310| 65 20 73 61 6d 70 6c 65 | 20 77 68 69 63 68 20 64 |e sample| which d|
|00000320| 65 6d 6f 6e 73 74 72 61 | 74 65 73 20 68 6f 77 20 |emonstra|tes how |
|00000330| 74 6f 00 2a 0e 41 70 72 | 6f 67 72 61 6d 6d 61 74 |to.*.Apr|ogrammat|
|00000340| 69 63 61 6c 6c 79 20 73 | 65 74 20 74 68 65 20 62 |ically s|et the b|
|00000350| 61 63 6b 67 72 6f 75 6e | 64 20 63 6f 6c 6f 72 20 |ackgroun|d color |
|00000360| 6f 66 20 61 20 77 69 6e | 64 6f 77 20 77 69 74 68 |of a win|dow with|
|00000370| 6f 75 74 20 61 6e 79 00 | 00 2a 0e 44 66 6c 69 63 |out any.|.*.Dflic|
|00000380| 6b 65 72 2e 20 46 6c 69 | 63 6b 65 72 20 69 73 20 |ker. Fli|cker is |
|00000390| 63 61 75 73 65 64 20 62 | 79 20 61 6c 6c 6f 77 69 |caused b|y allowi|
|000003a0| 6e 67 20 74 68 65 20 57 | 44 45 46 20 74 6f 20 70 |ng the W|DEF to p|
|000003b0| 61 69 6e 74 20 74 68 65 | 20 77 69 6e 64 6f 77 2c |aint the| window,|
|000003c0| 00 2a 0e 40 74 68 65 6e | 20 65 72 61 73 69 6e 67 |.*.@then| erasing|
|000003d0| 20 74 68 65 20 77 69 6e | 64 6f 77 20 63 6f 6e 74 | the win|dow cont|
|000003e0| 65 6e 74 73 20 74 6f 20 | 61 6e 6f 74 68 65 72 20 |ents to |another |
|000003f0| 63 6f 6c 6f 72 2e 20 54 | 68 69 73 20 63 61 75 73 |color. T|his caus|
|00000400| 65 73 20 61 00 2a 0e 46 | 6d 6f 6d 65 6e 74 61 72 |es a.*.F|momentar|
|00000410| 79 20 66 6c 61 73 68 20 | 6f 66 20 77 68 69 74 65 |y flash |of white|
|00000420| 20 d1 20 75 6e 6c 65 73 | 73 20 74 68 65 20 77 69 | . unles|s the wi|
|00000430| 6e 64 6f 77 20 68 61 73 | 20 61 20 63 6f 6c 6f 72 |ndow has| a color|
|00000440| 20 74 61 62 6c 65 2e 20 | 49 66 20 74 68 65 00 2a | table. |If the.*|
|00000450| 0e 48 77 69 6e 64 6f 77 | 20 63 6f 6c 6f 72 20 74 |.Hwindow| color t|
|00000460| 61 62 6c 65 20 73 70 65 | 63 69 66 69 65 73 20 61 |able spe|cifies a|
|00000470| 20 63 6f 6c 6f 72 20 66 | 6f 72 20 74 68 65 20 63 | color f|or the c|
|00000480| 6f 6e 74 65 6e 74 20 61 | 72 65 61 20 6f 66 20 74 |ontent a|rea of t|
|00000490| 68 65 20 77 69 6e 64 6f | 77 2c 00 2a 0e 44 74 68 |he windo|w,.*.Dth|
|000004a0| 65 20 57 44 45 46 20 70 | 61 69 6e 74 73 20 74 68 |e WDEF p|aints th|
|000004b0| 65 20 77 69 6e 64 6f 77 | 20 63 6f 6e 74 65 6e 74 |e window| content|
|000004c0| 20 61 72 65 61 20 77 69 | 74 68 20 74 68 61 74 20 | area wi|th that |
|000004d0| 63 6f 6c 6f 72 2c 20 61 | 6e 64 20 65 76 65 6e 20 |color, a|nd even |
|000004e0| 69 66 00 2a 0e 42 74 68 | 65 20 61 70 70 6c 69 63 |if.*.Bth|e applic|
|000004f0| 61 74 69 6f 6e 20 73 75 | 62 73 65 71 75 65 6e 74 |ation su|bsequent|
|00000500| 6c 79 20 65 72 61 73 65 | 73 20 74 68 65 20 77 69 |ly erase|s the wi|
|00000510| 6e 64 6f 77 20 74 6f 20 | 74 68 61 74 20 73 61 6d |ndow to |that sam|
|00000520| 65 20 63 6f 6c 6f 72 2c | 00 2a 0e 47 74 68 65 72 |e color,|.*.Gther|
|00000530| 65 20 69 73 20 6e 6f 20 | 66 6c 69 63 6b 65 72 2e |e is no |flicker.|
|00000540| 20 28 57 68 79 20 65 72 | 61 73 65 20 61 74 20 61 | (Why er|ase at a|
|00000550| 6c 6c 2c 20 74 68 65 6e | 3f 20 54 68 65 72 65 20 |ll, then|? There |
|00000560| 61 72 65 20 72 65 61 73 | 6f 6e 73 2c 20 62 75 74 |are reas|ons, but|
|00000570| 20 61 6e 00 00 2a 0e 30 | 65 78 70 6c 61 6e 61 74 | an..*.0|explanat|
|00000580| 69 6f 6e 20 69 73 20 62 | 65 79 6f 6e 64 20 74 68 |ion is b|eyond th|
|00000590| 65 20 73 63 6f 70 65 20 | 6f 66 20 74 68 69 73 20 |e scope |of this |
|000005a0| 73 61 6d 70 6c 65 2e 29 | 00 03 00 03 00 0d 00 12 |sample.)|........|
|000005b0| 00 28 01 30 00 12 2c 42 | 75 74 20 61 72 65 6e 27 |.(.0..,B|ut aren'|
|000005c0| 74 20 77 69 6e 64 6f 77 | 20 63 6f 6c 6f 72 20 74 |t window| color t|
|000005d0| 61 62 6c 65 73 20 62 65 | 63 6f 6d 69 6e 67 20 6c |ables be|coming l|
|000005e0| 65 73 73 00 00 2a 16 27 | 69 6d 70 6f 72 74 61 6e |ess..*.'|importan|
|000005f0| 74 20 77 69 74 68 20 74 | 68 65 20 61 64 76 65 6e |t with t|he adven|
|00000600| 74 20 6f 66 20 41 70 70 | 65 61 72 61 6e 63 65 00 |t of App|earance.|
|00000610| 00 2a 16 08 4d 61 6e 61 | 67 65 72 3f 00 03 00 10 |.*..Mana|ger?....|
|00000620| 00 0d 00 0c 00 2b 12 18 | 47 59 65 73 2e 20 55 73 |.....+..|GYes. Us|
|00000630| 65 20 74 68 69 73 20 63 | 6f 64 65 20 6f 6e 6c 79 |e this c|ode only|
|00000640| 20 69 66 20 79 6f 75 20 | 6e 65 65 64 20 74 6f 20 | if you |need to |
|00000650| 61 66 66 65 63 74 20 74 | 68 65 20 62 61 63 6b 67 |affect t|he backg|
|00000660| 72 6f 75 6e 64 20 63 6f | 6c 6f 72 20 6f 66 20 61 |round co|lor of a|
|00000670| 00 2a 0e 2d 77 69 6e 64 | 6f 77 20 61 6e 64 20 79 |.*.-wind|ow and y|
|00000680| 6f 75 20 6b 6e 6f 77 20 | 41 70 70 65 61 72 61 6e |ou know |Appearan|
|00000690| 63 65 20 69 73 6e 27 74 | 20 72 75 6e 6e 69 6e 67 |ce isn't| running|
|000006a0| 2e 00 00 03 00 03 00 0d | 00 12 00 28 01 a2 00 12 |........|...(....|
|000006b0| 0c 57 65 61 73 65 6c 20 | 57 6f 72 64 73 00 00 03 |.Weasel |Words...|
|000006c0| 00 10 00 0d 00 0c 00 2b | 12 18 43 59 6f 75 20 6d |.......+|..CYou m|
|000006d0| 61 79 20 69 6e 63 6f 72 | 70 6f 72 61 74 65 20 74 |ay incor|porate t|
|000006e0| 68 69 73 20 73 61 6d 70 | 6c 65 20 63 6f 64 65 20 |his samp|le code |
|000006f0| 69 6e 74 6f 20 79 6f 75 | 72 20 61 70 70 6c 69 63 |into you|r applic|
|00000700| 61 74 69 6f 6e 73 20 77 | 69 74 68 6f 75 74 00 2a |ations w|ithout.*|
|00000710| 0e 3f 72 65 73 74 72 69 | 63 74 69 6f 6e 2e 20 54 |.?restri|ction. T|
|00000720| 68 69 73 20 73 61 6d 70 | 6c 65 20 63 6f 64 65 20 |his samp|le code |
|00000730| 68 61 73 20 62 65 65 6e | 20 70 72 6f 76 69 64 65 |has been| provide|
|00000740| 64 20 22 41 53 20 49 53 | 22 20 61 6e 64 20 74 68 |d "AS IS|" and th|
|00000750| 65 00 00 2a 0e 48 72 65 | 73 70 6f 6e 73 69 62 69 |e..*.Hre|sponsibi|
|00000760| 6c 69 74 79 20 66 6f 72 | 20 69 74 73 20 6f 70 65 |lity for| its ope|
|00000770| 72 61 74 69 6f 6e 20 69 | 73 20 31 30 30 25 20 79 |ration i|s 100% y|
|00000780| 6f 75 72 73 2e 20 59 6f | 75 20 61 72 65 20 6e 6f |ours. Yo|u are no|
|00000790| 74 20 70 65 72 6d 69 74 | 74 65 64 20 74 6f 00 2a |t permit|ted to.*|
|000007a0| 0e 40 72 65 64 69 73 74 | 72 69 62 75 74 65 20 74 |.@redist|ribute t|
|000007b0| 68 65 20 73 6f 75 72 63 | 65 20 61 73 20 22 41 70 |he sourc|e as "Ap|
|000007c0| 70 6c 65 20 73 61 6d 70 | 6c 65 20 63 6f 64 65 22 |ple samp|le code"|
|000007d0| 20 61 66 74 65 72 20 68 | 61 76 69 6e 67 20 6d 61 | after h|aving ma|
|000007e0| 64 65 00 2a 0e 49 63 68 | 61 6e 67 65 73 2e 20 49 |de.*.Ich|anges. I|
|000007f0| 66 20 79 6f 75 27 72 65 | 20 67 6f 69 6e 67 20 74 |f you're| going t|
|00000800| 6f 20 72 65 2d 64 69 73 | 74 72 69 62 75 74 65 20 |o re-dis|tribute |
|00000810| 74 68 65 20 73 6f 75 72 | 63 65 2c 20 77 65 20 72 |the sour|ce, we r|
|00000820| 65 71 75 69 72 65 20 74 | 68 61 74 20 79 6f 75 00 |equire t|hat you.|
|00000830| 00 2a 0e 42 6d 61 6b 65 | 20 69 74 20 63 6c 65 61 |.*.Bmake| it clea|
|00000840| 72 20 69 6e 20 74 68 65 | 20 73 6f 75 72 63 65 20 |r in the| source |
|00000850| 74 68 61 74 20 74 68 65 | 20 63 6f 64 65 20 77 61 |that the| code wa|
|00000860| 73 20 64 65 73 63 65 6e | 64 65 64 20 66 72 6f 6d |s descen|ded from|
|00000870| 20 41 70 70 6c 65 00 2a | 0e 2a 73 61 6d 70 6c 65 | Apple.*|.*sample|
|00000880| 20 63 6f 64 65 2c 20 62 | 75 74 20 74 68 61 74 20 | code, b|ut that |
|00000890| 79 6f 75 27 76 65 20 6d | 61 64 65 20 63 68 61 6e |you've m|ade chan|
|000008a0| 67 65 73 2e 00 a1 00 64 | 00 0e b7 78 70 72 00 00 |ges....d|...xpr..|
|000008b0| 00 0e 00 00 00 00 00 00 | 00 ff 00 00 00 17 4d 53 |........|......MS|
|000008c0| 57 44 00 04 4e 41 54 56 | 4f 4c 4e 4b 50 49 43 54 |WD..NATV|OLNKPICT|
|000008d0| 4f 4a 4c 4b 00 00 00 00 | 30 00 00 00 01 00 00 00 |OJLK....|0.......|
|000008e0| 00 00 00 00 00 00 00 00 | 02 50 49 43 54 00 00 01 |........|.PICT...|
|000008f0| 00 00 00 00 00 00 00 00 | 00 43 4c 41 50 00 00 01 |........|.CLAP...|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 16 00 08 00 |........|........|
|00000910| 29 00 03 01 68 01 cc 69 | 78 00 01 ff f8 ff f0 00 |)...h..i|x.......|
|00000920| 00 01 84 00 00 01 00 00 | 00 08 a3 00 00 07 a3 00 |........|........|
|00000930| 00 00 6e 01 d8 b8 64 40 | a2 00 00 00 1c 00 6e 00 |..n...d@|......n.|
|00000940| 03 50 49 43 54 00 00 00 | 22 43 4c 41 50 00 00 00 |.PICT...|"CLAP...|
|00000950| 2e 64 72 61 67 00 00 00 | 3a 66 77 73 74 00 00 00 |.drag...|:fwst...|
|00000960| 46 01 00 ff ff 00 00 00 | 00 00 00 00 00 01 00 ff |F.......|........|
|00000970| ff 00 00 07 3a 00 00 00 | 00 00 80 ff ff 00 00 07 |....:...|........|
|00000980| 55 00 00 00 00 bf 4c ff | ff 00 00 07 89 00 6e 70 |U.....L.|......np|
|00000990| c0 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+